{include file=header.html}
<body>
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<style type="text/css">
.page{float:right;}
</style>
<div class="sub-body">
<div class="tab_info" style="width:700px;">
<div class="tab-title-1">
<span>{$lang.guestbook_list}</span>
</div>
<table width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color1">
      <tr>
        <th width="14%">{$lang.post_time}</th>
        <th width="38%">{$lang.gb_title}</th>
        <th width="14%">{$lang.reply_time}</th>
        <!-- {if $user.role==USER_MANAGER} -->
        <th width="12%">{$lang.user_name}</th>
        <th width="10%">{$lang.user_type}</th>
        <!-- {/if} -->
		<th width="12%">{$lang.handle}</th>
      </tr>
	  <!--{foreach from=$books_list item=books}-->
       <tr>
        <td>{$books.post_time|date}</td>
        <td align="left"><a href="{url app=guestbook&act=show&id=$books.gb_id}">{$books.gb_title|escape}</a></td>
		<td>{$books.reply_time|date}</td>
		<!-- {if $user.role==USER_MANAGER} -->
		<td>{$books.user_name|escape}</td>
		<td>{$lang.roles.$books.role}</td>
		<!-- {/if} -->
		<td>
		<!-- {if $user.role==USER_MANAGER} -->
        <a href="{url app=guestbook&act=reply&gb_id=$books.gb_id}">{$lang.reply}</a>&nbsp;|&nbsp;
        <!-- {/if} -->
        <!-- {if $books.reply_time} -->
		<a href="{url app=guestbook&act=show&id=$books.gb_id}">{$lang.show}</a>
        <!-- {else} -->
        <a href="javascript:if(confirm('确认删除此信息吗?')==true){location.href='{url app=guestbook&act=drop&gb_id=$books.gb_id}';};">{$lang.delete}</a>
        <!-- {/if} -->
        </td>

      </tr>
	  <!--{/foreach}-->
    </table>
    <div class="page"> {include file=page.html}</div>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div>
</div>
</body>
</html>